
package com.idealighter.game.log.struct.personalcenter;

import com.idealighter.game.dblog.annotation.Column;
import com.idealighter.game.dblog.annotation.LogTable;
import com.idealighter.game.dblog.core.TableType;
import com.idealighter.game.log.core.PlayerLog;
import com.idealighter.game.player.service.bo.PlayerBo;
import com.idealighter.game.player.struct.Player;

/**
 * 绑定本机日志 .
 *
 */
@LogTable(type = TableType.MONTH)
public class BindComputerLog extends PlayerLog {

  @Column(type = "varchar", size = 62, remark = "登录mac")
  public final String mac;

  @Column(type = "tinyint", size = 4, remark = "绑定手机类型(0:解绑本机,1:绑定本机)")
  public final short type;

  /**
   * 构造函数.
   * 
   * @param player 玩家.
   * @param mac .
   * @param type .
   */
  public BindComputerLog(Player player, String mac, int type) {
    super(player);
    this.mac = mac;
    this.type = (short) type;
  }

  /**
   * 构造函数.
   * 
   * @param domain .
   * @param mac .
   * @param type .
   */
  public BindComputerLog(PlayerBo domain, String mac, int type) {
    super(domain);
    this.mac = mac;
    this.type = (short) type;
  }

}
